

#ifndef _SHELL_RESRESULT_MESSAGE_H_
#define _SHELL_RESRESULT_MESSAGE_H_

#include "Message.h"
#include "Beans.h"
//#include "VsInfoLog.h"
//#include <vector>
//#include "FightGoods.h"
using namespace std;

class ResResultMessage : public Message
{
	public:
	ResResultMessage();
	~ResResultMessage();
	void reset();
	ResResultMessage* clone();
	static const int _ID;
	//银币
	int32 money;
	//经验
	int32 exp;
	//战斗类型1。普通。2特殊。3强制
	int8 fightType;
	//当前副本id
	int32 fightMapId;
	//战斗获得物品
	vector<FightGoods*> fightGoods;
	//0失败 1成功
	int8 isSucceed;
	//卖出装备获得银币
	int32 sellMoney;
	//获得真气
	int32 zhengqi;
	//所有对战信息日志
	vector<VsInfoLog*> vsInfoLog;
	
	bool read_from(ByteBuf& buf);
    bool write_to(ByteBuf& buf);
    int getId();
};

#endif
